@csrf
<input type="hidden" name="item_id" value="{{$detail->item_id}}">
<input type="hidden" name="url" value="{{isset($url) ? url($url) : route('admin.base.dataitem.index')}}">
<div class="layui-form-item">
    <label for="item_name" class="layui-form-label">项目名</label>
    <div class="layui-input-block">
        <input type="text" name="item_name" class="layui-input" value="{{$detail->item_name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="item_value" class="layui-form-label">项目值</label>
    <div class="layui-input-block">
        <input type="text" name="item_value" class="layui-input" value="{{$detail->item_value??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="sort_code" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="sort_code" class="layui-input" value="{{$detail->sort_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="status" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="checkbox" name="status" title="有效" class="layui-input" value="1"
            {{$detail->status=='1'?'checked':''}}>
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <input type="text" name="description" class="layui-input" value="{{$detail->description??''}}">
    </div>
</div>
